def test_one_tweet(self): graph = tweet_graph() # Insert the 1st tweet to the graph graph = self.update_graph_with_tweet(graph, 0) self.check_one_tweet_graph(graph)
def test_five_tweet(self): graph = tweet_graph() num_tweets = 5; # Insert the two tweets to the graph for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) self.check_five_tweets_graph(graph)
def test_five_tweet(self): graph = tweet_graph() num_tweets = 5 # Insert the two tweets to the graph for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) self.check_five_tweets_graph(graph)
def test_ten_tweet(self): graph = tweet_graph() num_tweets = 10; # Insert the seven tweets to the graph # "storm" node is retired for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) self.check_ten_tweets_graph(graph)
def test_six_tweet(self): graph = tweet_graph() num_tweets = 6; # Insert the two tweets to the graph for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) # Graph is disconnected into two parts self.check_six_tweets_graph(graph)
def test_three_tweet(self): graph = tweet_graph() # Insert the three tweets to the graph num_tweets = 3; for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) self.check_two_tweets_graph(graph)
def test_ten_tweet(self): graph = tweet_graph() num_tweets = 10 # Insert the seven tweets to the graph # "storm" node is retired for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) self.check_ten_tweets_graph(graph)
def test_six_tweet(self): graph = tweet_graph() num_tweets = 6 # Insert the two tweets to the graph for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) # Graph is disconnected into two parts self.check_six_tweets_graph(graph)
def test_three_tweet(self): graph = tweet_graph() # Insert the three tweets to the graph num_tweets = 3 for i in range(num_tweets): graph = self.update_graph_with_tweet(graph, i) self.check_two_tweets_graph(graph)