예제 #1
0
 def test_account_properties_to_dict(self):
     model = _models.AccountProperties(
         custom_model_count=5,
         custom_model_limit=10,
     )
     d = model.to_dict()
     final = {
         "custom_model_count": 5,
         "custom_model_limit": 10,
     }
     assert d == final
예제 #2
0
 def test_account_properties(self):
     model = _models.AccountProperties(custom_model_count=100,
                                       custom_model_limit=1000)
     model_repr = "AccountProperties(custom_model_count=100, custom_model_limit=1000)"
     assert repr(model) == model_repr