@mock.patch.object(os.path, 'getmtime', return_value=1439465889.4964755, autospec=True)
def test_unix_file_modification_datetime(self, mtime_mock):
    expected = datetime.datetime(2015, 8, 13, 11, 38, 9, 496475)
    self.assertEqual(expected, utils.unix_file_modification_datetime('foo'))
    mtime_mock.assert_called_once_with('foo')
@mock.patch.object(os.path, 'getmtime', return_value=1439465889.4964755, autospec=True)
def test_unix_file_modification_datetime(self, mtime_mock):
    expected = datetime.datetime(2015, 8, 13, 11, 38, 9, 496475)
    self.assertEqual(expected, utils.unix_file_modification_datetime('foo'))
    mtime_mock.assert_called_once_with('foo')