Example #1
0
 def test_get_offset(self):
     '''
     Test to get current numeric timezone offset from UCT (i.e. -0700)
     '''
     with patch.dict(timezone.__salt__,
                     {'cmd.run': MagicMock(return_value='A')}):
         self.assertEqual(timezone.get_offset(), 'A')
Example #2
0
 def test_get_offset(self):
     '''
     Test to get current numeric timezone offset from UCT (i.e. -0700)
     '''
     with patch.dict(timezone.__salt__, {'cmd.run':
                                         MagicMock(return_value='A')}):
         self.assertEqual(timezone.get_offset(), 'A')