Remove not very useful tests

This commit is contained in:
Tom
2016-12-02 17:33:04 +01:00
parent d881eae6c1
commit f118f19a98

View File

@@ -8,13 +8,8 @@ class TestIntrastatBase(TransactionCase):
def setUp(self):
super(TestIntrastatBase, self).setUp()
def test_10_countries(self):
# check if only EU countries have the 'intrastat' bit set
france = self.env.ref('base.fr')
self.assertTrue(france.intrastat)
brazil = self.env.ref('base.br')
self.assertFalse(brazil.intrastat)
denmark = self.env.ref('base.dk')
self.assertTrue(denmark.intrastat)
kenya = self.env.ref('base.ke')
@@ -31,19 +26,6 @@ class TestIntrastatBase(TransactionCase):
self.assertEquals(demo_company.intrastat_email_list, demo_user.email)
def test_exclude_intrastat(self):
# Test if exclude_from_intrastat_if_present is false
exclude_tax = self.env['account.tax'].search([('id', '=', 1)])
for item in exclude_tax:
self.assertFalse(item.exclude_from_intrastat_if_present)
def test_accessory_cost(self):
accessory_cost = self.env['product.product'].search([('id', '=', 1)])
for test in accessory_cost:
self.assertFalse(test.is_accessory_cost)