def test_create_valid_data(self): """ Test create ErpRegisteration with valid data """ erp = ErpRegisteration(name='erp', data=self.valid_data) erp.validate() assert erp.data == self.valid_data
def _test_create_erp_invalid(self, data, missing_key): with pytest.raises( ValueError, message= 'template should fail to instantiate if data dict is missing the %s' % missing_key): erp = ErpRegisteration(name='erp', data=data) erp.validate()