Commits

Charles Keil  committed 95955a2

fixed windows path separator error in test case

  • Participants
  • Parent commits 9fb09a2

Comments (0)

Files changed (1)

File tests/test_contrib/test_networkbuilder.py

 from mock import Mock
 from unittest import TestCase
 import hornet.contrib.networkbuilder as networkbuilder
+import os
 
 class SimilarityTest(TestCase):
     def test(self):
     def test_get_node_size(self):
         self.provider.get_node_size(self.period) 
         self.assertTrue(networkbuilder.read_csv.called)
-        self.assertEqual('/tmp/t0_t1_n.txt', 
+        self.assertEqual('/tmp' + os.sep + 't0_t1_n.txt', 
                          networkbuilder.read_csv.call_args[0][0])   
 
     def test_get_edge_data(self):