def test_accept_valid_data(self): account_data = { "account_name1": { "id": "42", "email": "*****@*****.**", "owner": "me"}} ai._check_account_data(account_data)
def test_accept_valid_data(self): account_data = { "account_name1": { "id": "42", "email": "*****@*****.**", "owner": "me" } } ai._check_account_data(account_data)
def test_accounts_with_different_ids(self): account_data = { "account_name1": { "id": "42", "email": "*****@*****.**", "owner": "me" }, "account_name2": { "id": "43", "email": "*****@*****.**", "owner": "me" } } ai._check_account_data(account_data)
def test_omitting_the_automated_field_is_allowed(self): del self.account_data['account1']['automated'] ai._check_account_data(self.account_data)
def test_empty_automated_field_is_allowed(self): ai._check_account_data(self.account_data)
def test_valid_data_is_accepted(self): self.account_data['account1']['automated'] = { 'foo': True, 'bar': False } ai._check_account_data(self.account_data)
def test_omitting_the_automated_field_is_allowed(self): del self.account_data['account1']['automated'] ai._check_account_data(self.account_data)
def test_empty_automated_field_is_allowed(self): ai._check_account_data(self.account_data)
def test_valid_data_is_accepted(self): self.account_data['account1']['automated'] = { 'foo': True, 'bar': False} ai._check_account_data(self.account_data)
def test_accounts_with_different_ids(self): account_data = {"account_name1": {"id": "42", "email": "*****@*****.**", "owner": "me"}, "account_name2": {"id": "43", "email": "*****@*****.**", "owner": "me"}} ai._check_account_data(account_data)