Beispiel #1
0
 def test_hapi_time_to_url_enc_openstack_time_with_dot_only(self):
     hapi_time = "20150624081005."
     actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time)
     expect = "2015-06-24T08%3A10%3A05.000000"
     self.assertEqual(actual, expect)
Beispiel #2
0
 def test_hapi_time_to_url_enc_openstack_time_with_dot_only(self):
     hapi_time = "20150624081005."
     actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time)
     expect = "2015-06-24T08%3A10%3A05.000000"
     self.assertEqual(actual, expect)
Beispiel #3
0
 def test_hapi_time_to_url_enc_openstack_time_with_ns(self):
     hapi_time = "20150624081005.123456789"
     actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time)
     expect = "2015-06-24T08%3A10%3A05.123456"
     self.assertEqual(actual, expect)
Beispiel #4
0
 def test_hapi_time_to_url_enc_openstack_time_with_ns(self):
     hapi_time = "20150624081005.123456789"
     actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time)
     expect = "2015-06-24T08%3A10%3A05.123456"
     self.assertEqual(actual, expect)