def _init_target_key(self, *args):
     """ abstract method to create composite key from source domain_name and timestamp"""
     return args[0], time_helper.session_to_hour(args[1])
Exemplo n.º 2
0
 def test_session_to_hour(self):
     timestamp = '20110101161633'
     expected_output = '2011010116'
     assert time_helper.session_to_hour(timestamp) == expected_output
Exemplo n.º 3
0
 def _init_sink_key(self, *args):
     return args[0], time_helper.session_to_hour(args[1])