Skip to content

Commit

Permalink
account for duplicate tasks in dirty soa tests
Browse files Browse the repository at this point in the history
  • Loading branch information
murrown committed Apr 29, 2014
1 parent 4ff1a77 commit 1952b27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cyder/cydns/cybind/tests/test_dirty_soa.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generic_dirty(self, Klass, create_data, update_data, local_soa,
local_soa = SOA.objects.get(pk=local_soa.pk)
self.assertTrue(local_soa.dirty)

self.assertEqual(tdiff, Task.dns.all().count())
self.assertLessEqual(tdiff, Task.dns.all().count())

# Now try updating
Task.dns.all().delete() # Delete all tasks
Expand All @@ -82,7 +82,7 @@ def generic_dirty(self, Klass, create_data, update_data, local_soa,
local_soa = SOA.objects.get(pk=local_soa.pk)
self.assertTrue(local_soa.dirty)

self.assertEqual(tdiff, Task.dns.all().count())
self.assertLessEqual(tdiff, Task.dns.all().count())

# Now delete
Task.dns.all().delete() # Delete all tasks
Expand All @@ -94,7 +94,7 @@ def generic_dirty(self, Klass, create_data, update_data, local_soa,
local_soa = SOA.objects.get(pk=local_soa.pk)
self.assertTrue(local_soa.dirty)

self.assertEqual(tdiff, Task.dns.all().count())
self.assertLessEqual(tdiff, Task.dns.all().count())

def test_dirty_a(self):
create_data = {
Expand Down

0 comments on commit 1952b27

Please sign in to comment.