Beispiel #1
0
 def test_find_all_email(self):
     # Iterate over all notes for a user via their email address
     notes = Note.find_all(email=self.email)
     for note in notes:
         self.assertTrue(note.id is not None)
         user = note.user.load()
         self.assertEqual(user.email, self.email)
         break
 def test_find_all_email(self):
     # Iterate over all notes for a user via their email address
     notes = Note.find_all(email=self.email)
     for note in notes:
         self.assertTrue(note.id is not None)
         user = note.user.load()
         self.assertEqual(user.email, self.email)
         break
Beispiel #3
0
    def test_find_all_id(self):
        from intercom.user import User
        user = User.find(email=self.email)

        # Iterate over all notes for a user via their email address
        for note in Note.find_all(user_id=user.user_id):
            self.assertTrue(note.id is not None)
            user = note.user.load()
            self.assertEqual(user.email, self.email)
    def test_find_all_id(self):
        from intercom.user import User
        user = User.find(email=self.email)

        # Iterate over all notes for a user via their email address
        for note in Note.find_all(user_id=user.user_id):
            self.assertTrue(note.id is not None)
            user = note.user.load()
            self.assertEqual(user.email, self.email)