@@ -20,7 +20,7 @@ def setUp(self):
20
20
21
21
@httpretty .activate
22
22
def test_start_archive (self ):
23
- httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
23
+ httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
24
24
body = textwrap .dedent (u ("""\
25
25
{
26
26
"createdAt" : 1395183243556,
@@ -71,7 +71,7 @@ def test_start_archive(self):
71
71
72
72
@httpretty .activate
73
73
def test_start_archive_with_name (self ):
74
- httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
74
+ httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
75
75
body = textwrap .dedent (u ("""\
76
76
{
77
77
"createdAt" : 1395183243556,
@@ -120,7 +120,7 @@ def test_start_archive_with_name(self):
120
120
121
121
@httpretty .activate
122
122
def test_start_voice_archive (self ):
123
- httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
123
+ httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
124
124
body = textwrap .dedent (u ("""\
125
125
{
126
126
"createdAt" : 1395183243556,
@@ -171,7 +171,7 @@ def test_start_voice_archive(self):
171
171
172
172
@httpretty .activate
173
173
def test_start_individual_archive (self ):
174
- httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
174
+ httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
175
175
body = textwrap .dedent (u ("""\
176
176
{
177
177
"createdAt" : 1395183243556,
@@ -223,7 +223,7 @@ def test_start_individual_archive(self):
223
223
224
224
@httpretty .activate
225
225
def test_start_composed_archive (self ):
226
- httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
226
+ httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
227
227
body = textwrap .dedent (u ("""\
228
228
{
229
229
"createdAt" : 1395183243556,
@@ -276,7 +276,7 @@ def test_start_composed_archive(self):
276
276
@httpretty .activate
277
277
def test_stop_archive (self ):
278
278
archive_id = u ('30b3ebf1-ba36-4f5b-8def-6f70d9986fe9' )
279
- httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/partner /{0}/archive/{1}/stop' ).format (self .api_key , archive_id ),
279
+ httpretty .register_uri (httpretty .POST , u ('https://api.opentok.com/v2/project /{0}/archive/{1}/stop' ).format (self .api_key , archive_id ),
280
280
body = textwrap .dedent (u ("""\
281
281
{
282
282
"createdAt" : 1395183243000,
@@ -319,7 +319,7 @@ def test_stop_archive(self):
319
319
@httpretty .activate
320
320
def test_delete_archive (self ):
321
321
archive_id = u ('30b3ebf1-ba36-4f5b-8def-6f70d9986fe9' )
322
- httpretty .register_uri (httpretty .DELETE , u ('https://api.opentok.com/v2/partner /{0}/archive/{1}' ).format (self .api_key , archive_id ),
322
+ httpretty .register_uri (httpretty .DELETE , u ('https://api.opentok.com/v2/project /{0}/archive/{1}' ).format (self .api_key , archive_id ),
323
323
body = u ('' ),
324
324
status = 204 )
325
325
@@ -332,7 +332,7 @@ def test_delete_archive(self):
332
332
@httpretty .activate
333
333
def test_find_archive (self ):
334
334
archive_id = u ('f6e7ee58-d6cf-4a59-896b-6d56b158ec71' )
335
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive/{1}' ).format (self .api_key , archive_id ),
335
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive/{1}' ).format (self .api_key , archive_id ),
336
336
body = textwrap .dedent (u ("""\
337
337
{
338
338
"createdAt" : 1395187836000,
@@ -374,7 +374,7 @@ def test_find_archive(self):
374
374
375
375
@httpretty .activate
376
376
def test_find_archives (self ):
377
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
377
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
378
378
body = textwrap .dedent (u ("""\
379
379
{
380
380
"count" : 6,
@@ -479,7 +479,7 @@ def test_find_archives(self):
479
479
480
480
@httpretty .activate
481
481
def test_find_archives_with_offset (self ):
482
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
482
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
483
483
body = textwrap .dedent (u ("""\
484
484
{
485
485
"count" : 6,
@@ -542,7 +542,7 @@ def test_find_archives_with_offset(self):
542
542
543
543
@httpretty .activate
544
544
def test_find_archives_with_count (self ):
545
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
545
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
546
546
body = textwrap .dedent (u ("""\
547
547
{
548
548
"count" : 6,
@@ -592,7 +592,7 @@ def test_find_archives_with_count(self):
592
592
593
593
@httpretty .activate
594
594
def test_find_archives_with_offset_and_count (self ):
595
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive' ).format (self .api_key ),
595
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive' ).format (self .api_key ),
596
596
body = textwrap .dedent (u ("""\
597
597
{
598
598
"count" : 6,
@@ -670,7 +670,7 @@ def test_find_archives_with_offset_and_count(self):
670
670
@httpretty .activate
671
671
def test_find_paused_archive (self ):
672
672
archive_id = u ('f6e7ee58-d6cf-4a59-896b-6d56b158ec71' )
673
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive/{1}' ).format (self .api_key , archive_id ),
673
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive/{1}' ).format (self .api_key , archive_id ),
674
674
body = textwrap .dedent (u ("""\
675
675
{
676
676
"createdAt" : 1395187836000,
@@ -697,7 +697,7 @@ def test_find_paused_archive(self):
697
697
@httpretty .activate
698
698
def test_find_expired_archive (self ):
699
699
archive_id = u ('f6e7ee58-d6cf-4a59-896b-6d56b158ec71' )
700
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive/{1}' ).format (self .api_key , archive_id ),
700
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive/{1}' ).format (self .api_key , archive_id ),
701
701
body = textwrap .dedent (u ("""\
702
702
{
703
703
"createdAt" : 1395187836000,
@@ -724,7 +724,7 @@ def test_find_expired_archive(self):
724
724
@httpretty .activate
725
725
def test_find_archive_with_unknown_properties (self ):
726
726
archive_id = u ('f6e7ee58-d6cf-4a59-896b-6d56b158ec71' )
727
- httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/partner /{0}/archive/{1}' ).format (self .api_key , archive_id ),
727
+ httpretty .register_uri (httpretty .GET , u ('https://api.opentok.com/v2/project /{0}/archive/{1}' ).format (self .api_key , archive_id ),
728
728
body = textwrap .dedent (u ("""\
729
729
{
730
730
"createdAt" : 1395187836000,
0 commit comments