def test_validate_pathname_pass_4(self): value = _validate('pathname', 'foo-bar.sqlite') self.assertEqual(value, 'foo-bar.sqlite')
def test_validate_host_fail_4(self): value = _validate('host', 'localhost.localdomain') self.assertEqual(value, 'localhost.localdomain')
def test_validate_pathname_pass_2(self): value = _validate('pathname', '.foo') self.assertEqual(value, '.foo')
def test_validate_host_pass_1(self): value = _validate('host', '127.0.0.1') self.assertEqual(value, '127.0.0.1')
def test_validate_host_pass_2(self): value = _validate('host', 'localhost') self.assertEqual(value, 'localhost')
def test_validate_dialect_pass_1(self): value = _validate('dialect', 'sqlite') self.assertEqual(value, 'sqlite')
def test_validate_driver_pass_1(self): value = _validate('driver', 'psycopg2') self.assertEqual(value, 'psycopg2')
def test_validate_charset_pass_3(self): value = _validate('charset', 'utf8mb4') self.assertEqual(value, 'utf8mb4')
def test_validate_user_pass_1(self): value = _validate('user', 'root') self.assertEqual(value, 'root')
def test_validate_port_pass_1(self): value = _validate('port', '3306') self.assertEqual(value, '3306')
def test_validate_password_pass_1(self): password = '******' value = _validate('password', password) self.assertEqual(value, password)
def test_validate_pathname_pass_6(self): value = _validate('pathname', '/home/jdoe/foo-bar.sqlite') self.assertEqual(value, '/home/jdoe/foo-bar.sqlite')