Skip to content

Commit

Permalink
[ADD] Test for copy data. Should not copy account number.
Browse files Browse the repository at this point in the history
  • Loading branch information
NL66278 committed Jul 2, 2017
1 parent cdf3d40 commit cb9e4b2
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -20,3 +20,13 @@ def test_base_bank_account_number_unique(self):
'acc_number': 'BE 1234 567 890',
'state': 'bank',
})

def test_bank_account_copy(self):
"""Copied bank account data should not contain account."""
bank_account_model = self.env['res.partner.bank']
original_account = bank_account_model.create({
'acc_number': 'BE1234567890',
'state': 'bank',
})
copied_data = original_account.copy_data()
self.assertEqual(copied_data['acc_number'], '')

0 comments on commit cb9e4b2

Please sign in to comment.