Example #1
0
    def test_path_to_filepath_no_end_slash(self, root_path):
        root_path.return_value = '/root'

        expected = "/root/foo/bar/"
        result = loading.path_to_filepath("foo/bar/")

        self.assertEquals(result, expected)
Example #2
0
    def test_path_to_filepath_with_beginning_slash(self, root_path):
        root_path.return_value = '/root'

        expected = "/root/foo/bar.md"
        result = loading.path_to_filepath("/foo/bar.md")

        self.assertEquals(result, expected)