from datetime import datetime
import sys
import unittest

import btceapi


class TestScraping(unittest.TestCase):
    def test_scrape_main_page(self):
        mainPage = btceapi.scrapeMainPage()
        for message in mainPage.messages:
            msgId, user, time, text = message
            assert type(time) is datetime
            if sys.version_info[0] == 2:
                # python2.x
                self.assertIn(type(msgId), (str, unicode))
                self.assertIn(type(user), (str, unicode))
                self.assertIn(type(text), (str, unicode))
            else:
                # python3.x
                self.assertIs(type(msgId), str)
                self.assertIs(type(user), str)
                self.assertIs(type(text), str)


if __name__ == '__main__':
    unittest.main()

@@ -292,15 +292,22 @@
     
+self.
 assert
- 
+Is(
 type
@@ -316,11 +316,9 @@
 ime)
- is
+,
  dat
@@ -322,16 +322,17 @@
 datetime
+)
 %0A       
@@ -405,38 +405,31 @@
             
-self.
 assert
-In(
+ 
 type(msgId),
@@ -427,17 +427,19 @@
 e(msgId)
-,
+ in
  (str, u
@@ -437,33 +437,32 @@
 n (str, unicode)
-)
 %0A               
@@ -458,38 +458,31 @@
             
-self.
 assert
-In(
+ 
 type(user), 
@@ -479,17 +479,19 @@
 pe(user)
-,
+ in
  (str, u
@@ -489,33 +489,32 @@
 n (str, unicode)
-)
 %0A               
@@ -518,22 +518,15 @@
     
-self.
 assert
-In(
+ 
 type
@@ -531,17 +531,19 @@
 pe(text)
-,
+ in
  (str, u
@@ -549,17 +549,16 @@
 unicode)
-)
 %0A       

Fix for assertIn method not being present in Python 2.6. Undo prior erroneous commit (assertIn is missing, not assertIs).