diff options
Diffstat (limited to 'distixlib/ticket_store_tests.py')
-rw-r--r-- | distixlib/ticket_store_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/distixlib/ticket_store_tests.py b/distixlib/ticket_store_tests.py index 9e47479..feba6d7 100644 --- a/distixlib/ticket_store_tests.py +++ b/distixlib/ticket_store_tests.py @@ -37,6 +37,7 @@ class TicketStoreTests(unittest.TestCase): shutil.rmtree(self.tempdir) def test_is_empty_initially(self): + self.assertListEqual(self.ticket_store.get_ticket_ids(), []) self.assertListEqual(self.ticket_store.get_tickets(), []) def test_is_empty_even_when_directory_doesnt_exist(self): @@ -54,7 +55,8 @@ class TicketStoreTests(unittest.TestCase): self.ticket.set_ticket_id('foo-id') filenames = self.ticket_store.add_ticket(self.ticket) tickets = self.ticket_store.get_tickets() - ticket_ids = [t.get_ticket_id() for t in tickets] + ticket_ids = self.ticket_store.get_ticket_ids() + self.assertListEqual(ticket_ids, [t.get_ticket_id() for t in tickets]) self.assertListEqual(ticket_ids, ['foo-id']) self.assertGreater(len(filenames), 0) |