コード例 #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)
コード例 #2
0
ファイル: TestHap2Ceilometer.py プロジェクト: yyamma/hatohol
 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)
コード例 #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)
コード例 #4
0
ファイル: TestHap2Ceilometer.py プロジェクト: yyamma/hatohol
 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)