コード例 #1
0
 def test_multiple_meetup_pizza_places_are_displayed_on_landing_page(self):
     self.meetup.pizza_places.create(
         name='PizzOOO',
         yelp_url='https://www.yelp.com/biz/lombardis-pizza-new-york')
     response = index(self.request)
     self.assertContains(response, 'Prince')
     self.assertContains(response, 'PizzOOO')
コード例 #2
0
 def test_next_meetup_title_displayed(self):
   response = index(self.request)
   self.assertContains(response, "Code Coffee")
コード例 #3
0
 def test_next_meetup_time_displayed(self):
   response = index(self.request)
   self.assertContains(response, "03/23/2016, 07:00:00 AM EDT")
コード例 #4
0
 def test_next_meetup_location_displayed(self):
   response = index(self.request)
   self.assertContains(response, "The Lexington")
コード例 #5
0
 def test_meetups_pizza_places_ratings_are_displayed_on_landing_page(self):
   response = index(self.request)
   self.assertContains(response, '🍕🍕🍕🍕')
コード例 #6
0
 def test_multiple_meetup_pizza_places_are_displayed_on_landing_page(self):
   self.meetup.pizza_places.create(name='PizzOOO', yelp_url='https://www.yelp.com/biz/lombardis-pizza-new-york')
   response = index(self.request)
   self.assertContains(response, 'Prince')
   self.assertContains(response, 'PizzOOO')
コード例 #7
0
 def test_meetup_is_displayed_on_landing_page(self):
   response = index(self.request)
   self.assertContains(response, "The Lexington")
コード例 #8
0
 def test_meetup_is_displayed_on_landing_page(self):
     response = index(self.request)
     self.assertContains(response, "The Lexington")
コード例 #9
0
 def test_landing_page_contains_map_url(self):
     response = index(self.request)
     self.assertContains(
         response,
         "https://www.google.com/maps?q=40.75501251220703,-73.97337341308594"
     )
コード例 #10
0
 def test_landing_page_contains_yelp_url(self):
     response = index(self.request)
     self.assertContains(
         response, "https://www.yelp.com/biz/prince-st-pizza-new-york")
コード例 #11
0
 def test_next_meetup_title_displayed(self):
     response = index(self.request)
     self.assertContains(response, "Code Coffee")
コード例 #12
0
 def test_next_meetup_time_displayed(self):
     response = index(self.request)
     self.assertContains(response, "03/23/2016, 07:00:00 AM EDT")
コード例 #13
0
 def test_next_meetup_location_displayed(self):
     response = index(self.request)
     self.assertContains(response, "The Lexington")
コード例 #14
0
 def test_meetups_pizza_places_ratings_are_displayed_on_landing_page(self):
     response = index(self.request)
     self.assertContains(response, '🍕🍕🍕🍕')
コード例 #15
0
 def test_landing_page_contains_yelp_url(self):
   response = index(self.request)
   self.assertContains(response, "https://www.yelp.com/biz/prince-st-pizza-new-york")
コード例 #16
0
 def test_landing_page_contains_pizza(self):
   response = index(self.request)
   self.assertContains(response, "pizza")
コード例 #17
0
 def test_landing_page_contains_map_url(self):
   response = index(self.request)
   self.assertContains(response, "https://www.google.com/maps?q=40.75501251220703,-73.97337341308594")
コード例 #18
0
 def test_landing_page_contains_pizza(self):
     response = index(self.request)
     self.assertContains(response, "pizza")