@@ -16,13 +16,14 @@ def connect_debug():
1616 u'gthc2t9gh7pzq52f6cky8w4r4up9dr6rju9w3fjgmkv6cdvvav2ufe5fv7e2r9qy'
1717 )
1818
19+ random_postfix = str (random .randint (0 , 1000000 ))
1920client = connect_debug ()
20- user1 = client .feed ('user' , '1' )
21- user2 = client .feed ('user' , '2' )
22- aggregated2 = client .feed ('aggregated' , '2' )
23- aggregated3 = client .feed ('aggregated' , '3' )
24- topic1 = client .feed ('topic' , '1' )
25- flat3 = client .feed ('flat' , '3' )
21+ user1 = client .feed ('user' , '1' + random_postfix )
22+ user2 = client .feed ('user' , '2' + random_postfix )
23+ aggregated2 = client .feed ('aggregated' , '2' + random_postfix )
24+ aggregated3 = client .feed ('aggregated' , '3' + random_postfix )
25+ topic1 = client .feed ('topic' , '1' + random_postfix )
26+ flat3 = client .feed ('flat' , '3' + random_postfix )
2627
2728
2829class ClientTest (TestCase ):
@@ -43,7 +44,7 @@ def test_heroku(self):
4344 client = stream .connect ()
4445 self .assertEqual (client .api_key , 'thierry' )
4546 self .assertEqual (client .api_secret , 'pass' )
46- self .assertEqual (client .site_id , '1' )
47+ self .assertEqual (client .app_id , '1' )
4748
4849 def test_heroku_real (self ):
4950 url = 'https://bvt88g4kvc63:twc5ywfste5bm2ngqkzs7ukxk3pn96yweghjrxcmcrarnt3j4dqj3tucbhym5wfd@getstream.io/?app=669'
@@ -52,15 +53,15 @@ def test_heroku_real(self):
5253 self .assertEqual (client .api_key , 'bvt88g4kvc63' )
5354 self .assertEqual (
5455 client .api_secret , 'twc5ywfste5bm2ngqkzs7ukxk3pn96yweghjrxcmcrarnt3j4dqj3tucbhym5wfd' )
55- self .assertEqual (client .site_id , '669' )
56+ self .assertEqual (client .app_id , '669' )
5657
5758 def test_heroku_overwrite (self ):
5859 url = 'https://thierry:pass@getstream.io/?app=1'
5960 os .environ ['STREAM_URL' ] = url
6061 client = stream .connect ('a' , 'b' , 'c' )
6162 self .assertEqual (client .api_key , 'a' )
6263 self .assertEqual (client .api_secret , 'b' )
63- self .assertEqual (client .site_id , 'c' )
64+ self .assertEqual (client .app_id , 'c' )
6465
6566 def test_token_retrieval (self ):
6667 self .user1 .token
0 commit comments