def test_encode_precision_error(self): with self.assertRaises(ValueError): DateRangeType._encode_precision('INVALID')
def test_encode_precision(self): self.assertEqual(DateRangeType._encode_precision('SECOND'), 5)
def test_encode_precision_error(self): with self.assertRaises(ValueError): DateRangeType._encode_precision('INVALID')
def test_encode_precision(self): self.assertEqual(DateRangeType._encode_precision('SECOND'), 5)