Example #1
0
 def test_multiple_dimensions(self):
     """Match against multiple dimensions"""
     questions = Question.get_sample_questions('language', 'urls')
     self.assertEquals(len(questions), 2)
Example #2
0
 def test_one_dimension(self):
     """With a dimension that matches one question"""
     questions = Question.get_sample_questions('hashtags')
     self.assertEquals(len(questions), 1)
Example #3
0
 def test_one_dimension_multi_match(self):
     """Try matching a dimension with multiple questions"""
     questions = Question.get_sample_questions('language')
     self.assertEquals(len(questions), 2)
Example #4
0
 def test_no_dimensions(self):
     """When you don't request any dimensions it returns all the questions"""
     questions = Question.get_sample_questions()
     self.assertEquals(len(questions), 3)
Example #5
0
 def test_multiple_dimensions(self):
     """Match against multiple dimensions"""
     questions = Question.get_sample_questions('language', 'urls')
     self.assertEquals(len(questions), 2)
Example #6
0
 def test_one_dimension_multi_match(self):
     """Try matching a dimension with multiple questions"""
     questions = Question.get_sample_questions('language')
     self.assertEquals(len(questions), 2)
Example #7
0
 def test_one_dimension(self):
     """With a dimension that matches one question"""
     questions = Question.get_sample_questions('hashtags')
     self.assertEquals(len(questions), 1)
Example #8
0
 def test_no_dimensions(self):
     """When you don't request any dimensions it returns all the questions"""
     questions = Question.get_sample_questions()
     self.assertEquals(len(questions), 3)