Пример #1
0
 def test_columns_are_always_two(self):
     data = {"spam": Mock()}
     new_model = models.ItemListModel(data)
     assert new_model.columnCount() == 2
Пример #2
0
 def test_columns_row_count_is_the_size_of_data(self):
     data = {"spam": Mock()}
     new_model = models.ItemListModel(data)
     assert new_model.rowCount() == len(data)
Пример #3
0
 def test_create(self):
     data = {"spam": Mock()}
     new_model = models.ItemListModel(data)
     assert new_model.jobs == list(data.values())