def test_remove_identifier_does_nothing_when_identifer_dne(self):
   self.create_config_file(self.tempfile, {})
   cfbs = ConfigFileBackingStore(self.tempfile)
   self.assertNotIn("Iron Man", cfbs.identifiers())
   cfbs.remove_identifier("Iron Man")
   self.assertNotIn("Iron Man", cfbs.identifiers())
Ejemplo n.º 2
0
 def test_remove_identifier_does_nothing_when_identifer_dne(self):
     self.create_config_file(self.tempfile, {})
     cfbs = ConfigFileBackingStore(self.tempfile)
     self.assertNotIn("Iron Man", cfbs.identifiers())
     cfbs.remove_identifier("Iron Man")
     self.assertNotIn("Iron Man", cfbs.identifiers())
 def test_removed_identifiers_dont_show_up_in_subsequent_calls(self):
   self.create_config_file(self.tempfile, {"Iron Man": {}})
   cfbs = ConfigFileBackingStore(self.tempfile)
   cfbs.remove_identifier("Iron Man")
   self.assertNotIn("Iron Man", cfbs.identifiers())
Ejemplo n.º 4
0
 def test_removed_identifiers_dont_show_up_in_subsequent_calls(self):
     self.create_config_file(self.tempfile, {"Iron Man": {}})
     cfbs = ConfigFileBackingStore(self.tempfile)
     cfbs.remove_identifier("Iron Man")
     self.assertNotIn("Iron Man", cfbs.identifiers())