Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
csu committed Dec 22, 2014
1 parent 8f06033 commit a5712cf
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions tests/test_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,28 @@ class TestActivity:
q = Quora()
activity1 = q.get_activity('Christopher-J-Su')
activity2 = q.get_activity('Aaron-Ounn')
test_activities = [activity1, activity2]

@classmethod
def setup_class(cls):
print "Setup here"

def test_activity_answers(self):
assert self.activity1.answers
assert self.activity2.answers
for activity in self.test_activities:
assert activity.answers
assert activity.answers

def test_activity_want_answers(self):
assert self.activity1.want_answers
assert self.activity2.want_answers
for activity in self.test_activities:
assert activity.want_answers
assert activity.want_answers

def test_activity_user_follows(self):
assert self.activity1.user_follows
assert self.activity2.user_follows
for activity in self.test_activities:
assert activity.user_follows
assert activity.user_follows

def test_activity_upvotes(self):
assert self.activity1.upvotes
assert self.activity2.upvotes
for activity in self.test_activities:
assert activity.user_follows
assert activity.user_follows

0 comments on commit a5712cf

Please sign in to comment.