Example #1
0
 def testInvalidPath(self):
     api = MyDropboxAPI(self.app_key, self.app_secret)
     api.connect(token_key = self.token_key, token_secret = self.token_secret)
     api.isRecentlyChanged(filename="report.otd", path="/dummy_folder")
     self.assertFalse(hasattr(api, "new_file"))
Example #2
0
 def testValidValues(self):
     api = MyDropboxAPI(self.app_key, self.app_secret)
     api.connect(token_key = self.token_key, token_secret = self.token_secret)
     api.isRecentlyChanged(filename="report.otd", path="")
     self.assertTrue(api.new_file)
Example #3
0
 def testInvalidFilename(self):
     api = MyDropboxAPI(self.app_key, self.app_secret)
     api.connect(token_key = self.token_key, token_secret = self.token_secret)
     api.isRecentlyChanged(filename="dummy filename", path="/")
     self.assertFalse(hasattr(api, "new_file"))
Example #4
0
 def testDefaultValues(self):
     api = MyDropboxAPI(self.app_key, self.app_secret)
     api.connect()
     api.isRecentlyChanged()
     self.assertTrue(api.new_file)