def test_must_return_docker_volume_dir(self):
        filename = "filename"
        context = InvokeContext(template_file=filename,
                                docker_volume_basedir="basedir")

        result = context.get_cwd()
        self.assertEquals(result, "basedir")
    def test_must_return_template_file_dir_name(self):
        filename = "filename"
        context = InvokeContext(template_file=filename)

        expected = os.path.dirname(os.path.abspath(filename))
        result = context.get_cwd()

        self.assertEquals(result, expected)
    def test_must_return_template_file_dir_name(self):
        filename = "filename"
        context = InvokeContext(template_file=filename)

        expected = os.path.dirname(os.path.abspath(filename))
        result = context.get_cwd()

        self.assertEquals(result, expected)
    def test_must_return_docker_volume_dir(self):
        filename = "filename"
        context = InvokeContext(template_file=filename, docker_volume_basedir="basedir")

        result = context.get_cwd()
        self.assertEquals(result, "basedir")