Ejemplo n.º 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)
Ejemplo n.º 2
0
 def test_selected_no_deleted_items(self):
     self.remove_deleted()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)
Ejemplo n.º 3
0
 def test_no_selected(self):
     self.empty_container()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 0)
Ejemplo n.º 4
0
 def test_selected_with_deleted_items(self):
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)
Ejemplo n.º 5
0
 def test_deleted(self):
     combined = combine_entries(self.container, 'deleted')
     self.assertEqual(len(combined), 2)
Ejemplo n.º 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)
Ejemplo n.º 7
0
 def test_no_selected(self):
     self.empty_container()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 0)
Ejemplo n.º 8
0
 def test_selected_no_deleted_items(self):
     self.remove_deleted()
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)
Ejemplo n.º 9
0
 def test_deleted(self):
     combined = combine_entries(self.container, 'deleted')
     self.assertEqual(len(combined), 2)
Ejemplo n.º 10
0
 def test_selected_with_deleted_items(self):
     combined = combine_entries(self.container, 'selected')
     self.assertEqual(len(combined), 2)