def test_panels_should_be_a_list(self): with self.assertRaises(ValueError): check_settings({ 'test': { 'name': 'Test', 'panels': 1 } })
def test_required_panels_for_item(self): with self.assertRaises(ValueError): check_settings( { 'test': { 'name': 'Test', } } )
def test_required_name_for_item(self): with self.assertRaises(ValueError): check_settings( { 'test': { 'panels': [] } } )
def test_wrong_item_of_categories(self): with self.assertRaises(ValueError): check_settings({'test': []})
def test_wrong_type(self): with self.assertRaises(ValueError): check_settings([1, 2, 3])