44from embedly .client import Embedly
55from embedly .models import Url
66
7+
78class EmbedlyTestCase (unittest .TestCase ):
89
910 def __init__ (self , * args , ** kwargs ):
@@ -124,16 +125,15 @@ def test_multi_errors(self):
124125 self .assertTrue (objs [1 ].type == 'error' ,objs [1 ].dict )
125126
126127 objs = list (http .oembed (['http://blog.embed.ly/lsbsdlfldsf/asdf/kl' ,
127- 'http://yfrog.com/h22eu4j' ]))
128+ 'http://yfrog.com/h22eu4j' ]))
128129 self .assertTrue (objs [0 ].type == 'error' ,objs [0 ].dict )
129130 self .assertTrue (objs [1 ].type == 'photo' ,objs [1 ].dict )
130131
131132 objs = list (http .oembed (['http://yfrog.com/h22eu4j' ,
132- 'http://www.scribd.com/asdf/asdf/asdfasdf' ]))
133+ 'http://www.scribd.com/asdf/asdf/asdfasdf' ]))
133134 self .assertTrue (objs [0 ].type == 'photo' ,objs [0 ].dict )
134135 self .assertTrue (objs [1 ].type == 'error' ,objs [1 ].dict )
135136
136-
137137 def test_too_many_urls (self ):
138138 http = Embedly (self .key )
139139
@@ -144,5 +144,6 @@ def test_too_many_urls(self):
144144 except Exception as e :
145145 self .assertTrue (type (e ), ValueError )
146146
147+
147148if __name__ == '__main__' :
148149 unittest .main ()
0 commit comments