Esempio n. 1
0
 def test_multiple_dimensions(self):
     """Match against multiple dimensions"""
     questions = Question.get_sample_questions('language', 'urls')
     self.assertEquals(len(questions), 2)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 5
0
 def test_multiple_dimensions(self):
     """Match against multiple dimensions"""
     questions = Question.get_sample_questions('language', 'urls')
     self.assertEquals(len(questions), 2)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)