def test_process_result_value(self): self.assertIsNone(sa_types.TimeStamp().process_result_value( None, dialect=None)) self.assertEqual( 1498561749.348996, sa_types.TimeStamp().process_result_value(1498561749348996, dialect=None))
def test_process_bind_param(self): self.assertIsNone(sa_types.TimeStamp().process_bind_param( None, dialect=None)) self.assertEqual( 1498561749348996, sa_types.TimeStamp().process_bind_param(1498561749.348996, dialect=None))