def test_that_middleman_address_not_set_will_produce_error_when_middleman_is_in_concent_features(self):
        del settings.MIDDLEMAN_ADDRESS

        errors = check_middleman_address()

        self.assertEqual(len(errors), 1)
        self.assertEqual(errors[0], create_error_38_middleman_address_is_not_set())
示例#2
0
    def test_that_non_str_middleman_address_setting_type_should_produce_error(
            self):
        errors = check_middleman_address()

        self.assertEqual(len(errors), 1)
        self.assertEqual(
            errors[0],
            create_error_48_middleman_address_has_wrong_type(
                settings.MIDDLEMAN_ADDRESS))
    def test_that_middleman_address_as_string_will_not_produce_error(self):
        errors = check_middleman_address()

        self.assertEqual(errors, [])