diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-02-04 18:58:24 -0500 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-02-04 18:58:24 -0500 |
commit | 52145432cc3608875a973aa078c19c869c8404d4 (patch) | |
tree | 6be9718dc7051bf6d5926100a3fb688dcaf57bd5 /test/unittest/test_client.py | |
parent | db8a66447655d1c6cebb4bb61172c38460cf83d3 (diff) | |
download | func-52145432cc3608875a973aa078c19c869c8404d4.tar.gz func-52145432cc3608875a973aa078c19c869c8404d4.tar.xz func-52145432cc3608875a973aa078c19c869c8404d4.zip |
make TestFileTracker test cases a bit less dependent on the state of the
filetracker setup
make the rpm command test look for some package a bit more likely to be there
than "func", for now, "filesystem"
Diffstat (limited to 'test/unittest/test_client.py')
-rw-r--r-- | test/unittest/test_client.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unittest/test_client.py b/test/unittest/test_client.py index 58effff..1d24753 100644 --- a/test/unittest/test_client.py +++ b/test/unittest/test_client.py @@ -93,10 +93,12 @@ class TestCommand(BaseTest): assert result[self.th][1] == "foo" def test_rpm(self): - result = self.client.command.run("rpm -q func") + # looksing for some package that should be there, rh specific + # ish at the moment + result = self.client.command.run("rpm -q filesystem") self.assert_on_fault(result) - assert result[self.th][1].split("-")[0] == "func" + assert result[self.th][1].split("-")[0] == "filesystem" @@ -160,8 +162,8 @@ class TestFileTracker(BaseTest): result = self.client.filetracker.track(self.fn) result = self.client.filetracker.inventory(False) self.assert_on_fault(result) - assert result[self.th][0][0] == "/etc/hosts" - assert result[self.th][0][3] == 0 + assert self.fn in result[self.th][0] +# assert result[self.th][0][3] == 0 def test_untrack(self): result = self.client.filetracker.track(self.fn) |