from falafel.mappers.current_clocksource import CurrentClockSource
from falafel.tests import context_wrap

CLKSRC = """
tsc
"""


def test_get_current_clksr():
    clksrc = CurrentClockSource(context_wrap(CLKSRC))
    assert clksrc.data == "tsc"

from falafel.mappers.current_clocksource import CurrentClockSource
from falafel.tests import context_wrap

CLKSRC = """
tsc
"""


def test_get_current_clksr():
    clksrc = CurrentClockSource(context_wrap(CLKSRC))
    assert clksrc.data == "tsc"
    assert clksrc.is_kvm is False
    assert clksrc.is_vmi_timer != clksrc.is_tsc

Enhance coverage of current_closcksource to 100%
Enhance coverage of current_closcksource to 100%

  from falafel.mappers.current_clocksource import CurrentClockSource
  from falafel.tests import context_wrap
  
  CLKSRC = """
  tsc
  """
  
  
  def test_get_current_clksr():
      clksrc = CurrentClockSource(context_wrap(CLKSRC))
      assert clksrc.data == "tsc"
+     assert clksrc.is_kvm is False
+     assert clksrc.is_vmi_timer != clksrc.is_tsc
  
Enhance coverage of current_closcksource to 100%
## Code Before:
from falafel.mappers.current_clocksource import CurrentClockSource
from falafel.tests import context_wrap

CLKSRC = """
tsc
"""


def test_get_current_clksr():
    clksrc = CurrentClockSource(context_wrap(CLKSRC))
    assert clksrc.data == "tsc"

## Instruction:
Enhance coverage of current_closcksource to 100%
## Code After:
from falafel.mappers.current_clocksource import CurrentClockSource
from falafel.tests import context_wrap

CLKSRC = """
tsc
"""


def test_get_current_clksr():
    clksrc = CurrentClockSource(context_wrap(CLKSRC))
    assert clksrc.data == "tsc"
    assert clksrc.is_kvm is False
    assert clksrc.is_vmi_timer != clksrc.is_tsc
