コード例 #1
0
 url(r'^bookies/coral/(?P<update_no>[0-1]+|0)/(?P<matchday_games_id>[0-9]+)/coral_matches_0/$',
     Get_Coral_Matches_0.as_view(),
     name='coral_matches_0'),
 url(r'^bookies/coral/(?P<update_no>[0-1]+|0)/(?P<matchday_games_id>[0-9]+)/coral_matches_1/$',
     Get_Coral_Matches_1.as_view(),
     name='coral_matches_1'),
 url(r'^bookies/coral/(?P<update_no>[0-1]+|0)/(?P<matchday_games_id>[0-9]+)/coral_matches_2/$',
     Get_Coral_Matches_2.as_view(),
     name='coral_matches_2'),
 url(r'^bookies/coral/(?P<update_no>[0-1]+|0)/(?P<matchday_games_id>[0-9]+)/coral_matches_3/$',
     Get_Coral_Matches_3.as_view(),
     name='coral_matches_3'),
 # url(r'^bookies/corals/(?P<match_day>[\w\s]+)/$', Get_Coral_Matches_0.as_view(), name='coral_matches_0'),
 # url(r'^bookies/coral/(?P<coral_game_dates>[\w\s]+)/coral_matchday_dates/$', GetAllCoralGameDates.as_view(), name='coral_game_dates'),
 url(r'^william_hill_games_0/(?P<refresh_no>[0-9]+|0)/$',
     William_Hill_Games_0.as_view(),
     name='william_hill_0'),
 url(r'^william_hill_games_1/(?P<refresh_no>[0-9]+|0)/$',
     William_Hill_Games_1.as_view(),
     name='william_hill_1'),
 url(r'^william_hill_games_2/(?P<refresh_no>[0-9]+|0)/$',
     William_Hill_Games_2.as_view(),
     name='william_hill_2'),
 url(r'^william_hill_games_3/(?P<refresh_no>[0-9]+|0)/$',
     William_Hill_Games_3.as_view(),
     name='william_hill_3'),
 url(r'^william_hill_games_4/(?P<refresh_no>[0-9]+|0)/$',
     William_Hill_Games_4.as_view(),
     name='william_hill_4'),
 url(r'^william_hill_games_5/(?P<refresh_no>[0-9]+|0)/$',
     William_Hill_Games_5.as_view(),
コード例 #2
0
 def test_02_william_hill_view_as_200_and_refresh_no_is_1(self):
     request = self.factory.get(reverse('william_hill_0', args=[1]))
     response = William_Hill_Games_0.as_view()(request, 1)
     self.assertEqual(response.status_code, 200)