def test_custom_container_value_method(self): """ Reject unsupported property types. """ with self.assertRaises(ValueError): def fun(): print(":)") containers.add_custom_container({'well_depth': fun})
def test_custom_container_property(self): """ Reject unknown properties. """ with self.assertRaises(KeyError): containers.add_custom_container({'fake_key':True})
def test_custom_container_type(self): """ Enforce valid custom container type. """ with self.assertRaises(KeyError): containers.add_custom_container({'type':'imaginary'})
def test_custom_container_property(self): """ Reject unknown properties. """ with self.assertRaises(KeyError): containers.add_custom_container({'fake_key': True})
def test_custom_container_type(self): """ Enforce valid custom container type. """ with self.assertRaises(KeyError): containers.add_custom_container({'type': 'imaginary'})