Exemple #1
0
 def test_shared_with_deleted_selection(self):
     self.item1.deletion_type = 'selected'
     combined = combine_entries(self.container, 'shared')
     self.assertEqual(len(combined), 3)
Exemple #2
0
 def test_selected_no_deleted_items(self):
     self.remove_deleted()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)
Exemple #3
0
 def test_no_selected(self):
     self.empty_container()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 0)
Exemple #4
0
 def test_selected_with_deleted_items(self):
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)
Exemple #5
0
 def test_deleted(self):
     combined = combine_entries(self.container, 'deleted')
     self.assertEqual(len(combined), 2)
Exemple #6
0
 def test_shared_with_deleted_selection(self):
     self.item1.deletion_type = 'selected'
     combined = combine_entries(self.container, 'shared')
     self.assertEqual(len(combined), 3)
Exemple #7
0
 def test_no_selected(self):
     self.empty_container()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 0)
Exemple #8
0
 def test_selected_no_deleted_items(self):
     self.remove_deleted()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)
Exemple #9
0
 def test_deleted(self):
     combined = combine_entries(self.container, 'deleted')
     self.assertEqual(len(combined), 2)
Exemple #10
0
 def test_selected_with_deleted_items(self):
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)