from bonspy.features import _apply_operations


def test_apply_operations_domain():
    value = _apply_operations('domain', 'www.test.com')

    assert value == 'test.com'


def test_apply_operations_segment():
    value = _apply_operations('segment', 1)

    assert value == 1

from bonspy.features import _apply_operations


def test_apply_operations_domain():
    value = _apply_operations('domain', 'www.test.com')

    assert value == 'test.com'


def test_apply_operations_other_feature():
    value = _apply_operations('other_feature', 'www.test.com')

    assert value == 'www.test.com'


def test_apply_operations_segment():
    value = _apply_operations('segment', 1)

    assert value == 1

Test that stripping leading www is specific to domain feature
Test that stripping leading www is specific to domain feature

  from bonspy.features import _apply_operations
  
  
  def test_apply_operations_domain():
      value = _apply_operations('domain', 'www.test.com')
  
      assert value == 'test.com'
  
  
+ def test_apply_operations_other_feature():
+     value = _apply_operations('other_feature', 'www.test.com')
+ 
+     assert value == 'www.test.com'
+ 
+ 
  def test_apply_operations_segment():
      value = _apply_operations('segment', 1)
  
      assert value == 1
  
Test that stripping leading www is specific to domain feature
## Code Before:
from bonspy.features import _apply_operations


def test_apply_operations_domain():
    value = _apply_operations('domain', 'www.test.com')

    assert value == 'test.com'


def test_apply_operations_segment():
    value = _apply_operations('segment', 1)

    assert value == 1

## Instruction:
Test that stripping leading www is specific to domain feature
## Code After:
from bonspy.features import _apply_operations


def test_apply_operations_domain():
    value = _apply_operations('domain', 'www.test.com')

    assert value == 'test.com'


def test_apply_operations_other_feature():
    value = _apply_operations('other_feature', 'www.test.com')

    assert value == 'www.test.com'


def test_apply_operations_segment():
    value = _apply_operations('segment', 1)

    assert value == 1
