def test_nullable_string(self): self.assertEqual(Loader.nullable_string("BANK"), "BANK")
def test_nullable_int_strip(self): self.assertEqual(Loader.nullable_int(" 3 "), 3)
def test_nullable_int_empty(self): self.assertIsNone(Loader.nullable_int(""))
def test_string_to_boolean_0(self): self.assertFalse(Loader.string_to_boolean("0"))
def test_string_to_boolean_empty(self): self.assertIsNone(Loader.string_to_boolean(""))
def test_nullable_int(self): self.assertEqual(Loader.nullable_int('3'), 3)
def test_string_to_boolean_capitalization(self): self.assertTrue(Loader.string_to_boolean("TrUe"))
def test_string_to_boolean_other_is_none(self): self.assertIsNone(Loader.string_to_boolean('frog'))
def test_string_to_boolean_empty(self): self.assertIsNone(Loader.string_to_boolean(''))
def test_string_to_boolean_1(self): self.assertTrue(Loader.string_to_boolean('1'))
def test_string_to_boolean_0(self): self.assertFalse(Loader.string_to_boolean('0'))
def test_string_to_boolean_capitalization(self): self.assertTrue(Loader.string_to_boolean('TrUe'))
def test_string_to_boolean_true(self): self.assertTrue(Loader.string_to_boolean('true'))
def test_nullable_string(self): self.assertEqual(Loader.nullable_string('BANK'), 'BANK')
def test_nullable_string_whitespace(self): self.assertIsNone(Loader.nullable_string(" "))
def test_nullable_int_strip(self): self.assertEqual(Loader.nullable_int(' 3 '), 3)
def test_nullable_decimal_empty(self): self.assertIsNone(Loader.nullable_decimal(""))
def test_nullable_int_float(self): self.assertEqual(Loader.nullable_int('3.00'), 3)
def test_string_to_boolean_true(self): self.assertTrue(Loader.string_to_boolean("true"))
def test_nullable_int_empty(self): self.assertIsNone(Loader.nullable_int(''))
def test_string_to_boolean_1(self): self.assertTrue(Loader.string_to_boolean("1"))
def test_nullable_int_whitespace(self): self.assertIsNone(Loader.nullable_int(' '))
def test_string_to_boolean_other_is_none(self): self.assertIsNone(Loader.string_to_boolean("frog"))
def test_base_class_not_implemented(self): with self.assertRaises(NotImplementedError): Loader(ContentFile("HEADER\ncontent")).load()
def test_nullable_string_empty(self): self.assertIsNone(Loader.nullable_string(''))
def test_nullable_int_float(self): self.assertEqual(Loader.nullable_int("3.00"), 3)
def test_nullable_string_whitespace(self): self.assertIsNone(Loader.nullable_string(' '))
def test_nullable_int_whitespace(self): self.assertIsNone(Loader.nullable_int(" "))
def test_nullable_decimal(self): self.assertEqual(Loader.nullable_decimal('3.5'), Decimal('3.5'))
def test_nullable_string_empty(self): self.assertIsNone(Loader.nullable_string(""))
def test_nullable_decimal_empty(self): self.assertIsNone(Loader.nullable_decimal(''))
def test_nullable_decimal(self): self.assertEqual(Loader.nullable_decimal("3.5"), Decimal("3.5"))
def test_nullable_decimal_whitespace(self): self.assertIsNone(Loader.nullable_decimal(' '))
def test_nullable_decimal_whitespace(self): self.assertIsNone(Loader.nullable_decimal(" "))
def test_string_to_boolean_false(self): self.assertFalse(Loader.string_to_boolean('false'))