from unfurl import Unfurl

import unittest

class TestTwitter(unittest.TestCase):

    def test_twitter(self):
        """ Test a tyipcal and a unique Discord url """
        
        # unit test for a unique Discord url.
        test = Unfurl()
        test.add_to_queue(data_type='url', key=None, 
            value='https://twitter.com/_RyanBenson/status/1098230906194546688')
        test.parse_queue()

        # test number of nodes
        self.assertEqual(len(test.nodes.keys()), 13)
        self.assertEqual(test.total_nodes, 13)

        # is processing finished empty
        self.assertTrue(test.queue.empty())
        self.assertEqual(len(test.edges), 0)

if __name__ == '__main__':
    unittest.main()
@@ -37,16 +37,17 @@
 ittest%0A%0A
+%0A
 class Te
@@ -130,10 +130,10 @@
 a ty
-i
 p
+i
 cal 
@@ -141,31 +141,31 @@
 nd a unique 
-Discord
+Twitter
  url %22%22%22%0A   
@@ -165,62 +165,8 @@
 %22%22%22%0A
-        %0A        # unit test for a unique Discord url.
 %0A   
@@ -212,16 +212,29 @@
 o_queue(
+%0A            
 data_typ
@@ -251,17 +251,16 @@
 ey=None,
- 
 %0A       
@@ -370,20 +370,25 @@
       # 
-test
+check the
  number 
@@ -511,21 +511,260 @@
   # 
-is processing
+confirm that snowflake was detected%0A        self.assertIn('Twitter Snowflakes', test.nodes%5B9%5D.hover)%0A%0A        # embedded timestamp parses correctly%0A        self.assertEqual('2019-02-20 14:40:26.837', test.nodes%5B13%5D.value)%0A%0A        # make sure the queue
  fin
@@ -865,16 +865,17 @@
 s), 0)%0A%0A
+%0A
 if __nam
@@ -912,8 +912,9 @@
 t.main()
+%0A

Update Twitter test to be more robust