from django.test import TestCase

from symposion.proposals.tests.factories import ProposalBaseFactory
from symposion.schedule.tests.factories import PresentationFactory


class ProposalsTest(TestCase):
    def test_can_edit(self):
        # If a presentation has been created, speaker can no longer edit their proposal
        prop = ProposalBaseFactory()
        self.assertTrue(prop.can_edit())
        PresentationFactory(proposal_base=prop)
        self.assertFalse(prop.can_edit())

f1421bb442f7b435da5697f7d1dc001faa308f40
<mask token>

<mask token>


class ProposalsTest(TestCase):
    <mask token>

<mask token>


class ProposalsTest(TestCase):

    def test_can_edit(self):
        prop = ProposalBaseFactory()
        self.assertTrue(prop.can_edit())
        PresentationFactory(proposal_base=prop)
        self.assertFalse(prop.can_edit())

from django.test import TestCase
from symposion.proposals.tests.factories import ProposalBaseFactory
from symposion.schedule.tests.factories import PresentationFactory


class ProposalsTest(TestCase):

    def test_can_edit(self):
        prop = ProposalBaseFactory()
        self.assertTrue(prop.can_edit())
        PresentationFactory(proposal_base=prop)
        self.assertFalse(prop.can_edit())

from django.test import TestCase

from symposion.proposals.tests.factories import ProposalBaseFactory
from symposion.schedule.tests.factories import PresentationFactory


class ProposalsTest(TestCase):
    def test_can_edit(self):
        # If a presentation has been created, speaker can no longer edit their proposal
        prop = ProposalBaseFactory()
        self.assertTrue(prop.can_edit())
        PresentationFactory(proposal_base=prop)
        self.assertFalse(prop.can_edit())
