Пример #1
0
 def test_verify(self):
     failure = verify(get_individual(1))
     success = verify(support_user)
     self.assertFalse(failure)
     self.assertTrue(success)
Пример #2
0
        """
		DROP TABLE IF EXISTS test_user"""
    )

    cursor.execute(
        """
		CREATE TABLE test_user
		(id real, username text)
		"""
    )

    cursor.close()


# globals
support_user = get_individual(100)
support_activities = get_activities(support_user)

actual_user = get_individual(101)
actual_activities = get_activities(actual_user)

contributions = verify_contribution(actual_activities)
links = get_activity_links(actual_activities)


class TestIndieGoGo(unittest.TestCase):
    def setUp(self):
        # test_db implementation
        # valid user logic
        # self.support_user = get_individual(100)
        # set this up later