Beispiel #1
0
 def test_get_default_credentials_path_not_exist(self):
     self.assertFalse(
         path.exists(path.join(path.expanduser('~'), '.credentials')))
     self.assertEqual(
         path.join(path.expanduser('~'), '.credentials/credentials.json'),
         GoogleCalendar._get_default_credentials_path())
     self.assertTrue(
         path.exists(path.join(path.expanduser('~'), '.credentials')))
Beispiel #2
0
 def test_get_default_credentials_path_exist(self):
     self.fs.create_dir(path.join(path.expanduser('~'), '.credentials'))
     self.assertEqual(
         path.join(path.expanduser('~'), '.credentials/credentials.json'),
         GoogleCalendar._get_default_credentials_path())