from subprocess import check_output
from unittest import skipUnless

from twisted.python.procutils import which
from twisted.trial.unittest import TestCase

from ... import __version__


_require_installed = skipUnless(which("flocker-changestate"),
                                "flocker-changestate not installed")


class FlockerDeployTests(TestCase):
    """Tests for ``flocker-changestate``."""

    @_require_installed
    def setUp(self):
        pass

    def test_version(self):
        """
        ``flocker-changestate`` is a command available on the system path
        """
        result = check_output([b"flocker-changestate"] + [b"--version"])
        self.assertEqual(result, b"%s\n" % (__version__,))

from subprocess import check_output
from unittest import skipUnless

from twisted.python.procutils import which
from twisted.trial.unittest import TestCase

from ... import __version__


_require_installed = skipUnless(which("flocker-changestate"),
                                "flocker-changestate not installed")


class FlockerChangeStateTests(TestCase):
    """Tests for ``flocker-changestate``."""

    @_require_installed
    def setUp(self):
        pass

    def test_version(self):
        """
        ``flocker-changestate`` is a command available on the system path
        """
        result = check_output([b"flocker-changestate"] + [b"--version"])
        self.assertEqual(result, b"%s\n" % (__version__,))

Fix the functional testcase name
Fix the functional testcase name

  from subprocess import check_output
  from unittest import skipUnless
  
  from twisted.python.procutils import which
  from twisted.trial.unittest import TestCase
  
  from ... import __version__
  
  
  _require_installed = skipUnless(which("flocker-changestate"),
                                  "flocker-changestate not installed")
  
  
- class FlockerDeployTests(TestCase):
+ class FlockerChangeStateTests(TestCase):
      """Tests for ``flocker-changestate``."""
  
      @_require_installed
      def setUp(self):
          pass
  
      def test_version(self):
          """
          ``flocker-changestate`` is a command available on the system path
          """
          result = check_output([b"flocker-changestate"] + [b"--version"])
          self.assertEqual(result, b"%s\n" % (__version__,))
  
Fix the functional testcase name
## Code Before:
from subprocess import check_output
from unittest import skipUnless

from twisted.python.procutils import which
from twisted.trial.unittest import TestCase

from ... import __version__


_require_installed = skipUnless(which("flocker-changestate"),
                                "flocker-changestate not installed")


class FlockerDeployTests(TestCase):
    """Tests for ``flocker-changestate``."""

    @_require_installed
    def setUp(self):
        pass

    def test_version(self):
        """
        ``flocker-changestate`` is a command available on the system path
        """
        result = check_output([b"flocker-changestate"] + [b"--version"])
        self.assertEqual(result, b"%s\n" % (__version__,))

## Instruction:
Fix the functional testcase name
## Code After:
from subprocess import check_output
from unittest import skipUnless

from twisted.python.procutils import which
from twisted.trial.unittest import TestCase

from ... import __version__


_require_installed = skipUnless(which("flocker-changestate"),
                                "flocker-changestate not installed")


class FlockerChangeStateTests(TestCase):
    """Tests for ``flocker-changestate``."""

    @_require_installed
    def setUp(self):
        pass

    def test_version(self):
        """
        ``flocker-changestate`` is a command available on the system path
        """
        result = check_output([b"flocker-changestate"] + [b"--version"])
        self.assertEqual(result, b"%s\n" % (__version__,))
